/**
 * 
 */
package com.wolfpire.proms.dao;

import java.util.List;

import com.wolfpire.proms.model.ProjectIndexRoleRelation;
import com.wolfpire.system.common.base.dao.IBaseHibernateDao;

/**
 * 项目指标角色关系持久层接口
 * @author lihd
 *
 */
public interface ProjectIndexRoleRelationDao extends IBaseHibernateDao<ProjectIndexRoleRelation, Long> {
	
	/**
	 * 绑定指标与角色之间的关系
	 * @param id
	 * @param roleIds
	 */
	public void relate(Long projectIndexId, Long[] roleIds);
	
	/**
	 * 根据指标id获取指标角色关系
	 * @param projectIndexId
	 * @return
	 */
	public List<ProjectIndexRoleRelation> getPiRRelation(Long projectIndexId);

}
